﻿using EmoneyWeiXinCommon;
using EmoneyWeiXinEntity;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;

namespace EmoneyWeiXinDAL
{
    public class NewsDal
    {
        public NewsEntity getNewsInfo(string nid)
        {
            SqlParameter[] parameters = new SqlParameter[] { new SqlParameter("@nid", nid) };
            NewsEntity result = SQLHelper.GetProcedureDataByColumns<NewsEntity>(Config.Default, "sp_News_SelectByNid", parameters);
            return result;
        }
    }
}
